import Vue from "vue"
import App from "@/App"
import store from "@/store"
import utils from "@/utils"
import filters from "@/filters"
import request from "@/request"
import global from "@/mixins/global"
import uView from "@/uni_modules/uview-ui"
import zuimei from "@/zuimei"
// #ifdef MP-WEIXIN
import uma from "@/utils/sdk/uma"
// #endif
// #ifdef WEB
import "@/plugins/vue-cup-ui/index.css"
import VueCupUi from "@/plugins/vue-cup-ui"
// #endif

uni.hideTabBar()

Vue.use(zuimei) // uView
Vue.use(uView) // uView
Vue.use(utils) // utils工具
Vue.use(filters) // 全局过滤器
Vue.use(request) // api接口
Vue.mixin(global) // 全局mixin

// #ifdef MP-WEIXIN
Vue.use(uma)
// #endif
// #ifdef WEB
Vue.use(VueCupUi)
// #endif

Vue.config.productionTip = false
App.mpType = "app"

const app = new Vue({ ...App, store })
app.$mount()

export default app
